package a.f.g.a;

import a.c.bb;
import a.c.k;
import a.c.w;
import a.c.x;
import a.d.u;
import a.f.c.h;
import a.f.c.i;
import a.f.m.a;
import a.f.o;
import a.f.r;
import a.f.rc;
import a.i.y;
import a.i.z;

import java.util.HashSet;

class c
  extends r
{
  public c(rc paramrc)
  {
    super(paramrc);
  }
  
  public c() {}
  
  public boolean canLayout(o paramo)
  {
    return true;
  }
  
  public void doLayout(o paramo)
  {
    boolean bool = xb.r;
    int j = xb.q;
    if ((bool) || (a() != null)) {
      a().doLayout(paramo);
    }
    k localk1 = paramo.c(i.d);
    k localk2 = paramo.c(t.a);
    if (!bool) {}
    int i = !h.c(paramo) ? 1 : 0;
    if ((i == 0) || (localk2 == null)) {
      return;
    }
    u localu1 = new u(5.0D, 5.0D, 5.0D, 5.0D);
    h localh = new h(paramo);
    x localx = paramo.B();
    HashSet localHashSet = new HashSet();
    bb localbb = new bb();
    Object localObject1 = paramo.v();
    a.c.e locale1;
    label243:
    do
    {
      do
      {
        if (!((w)localObject1).e()) {
          break label298;
        }
        break label243;
        localObject2 = ((w)localObject1).d();
        if (!bool) {
          if ((localh.e((a.c.e)localObject2)) && ((bool) || (localk2.getBool(localObject2))))
          {
            if (bool) {
              break label295;
            }
            if (!localHashSet.add(localObject2)) {
              break;
            }
            localbb.add(localObject2);
            if (bool) {
              break label295;
            }
            if (j == 0) {
              break;
            }
          }
        }
        locale1 = localh.b((a.c.e)localObject2);
        do
        {
          if (locale1 == localh.d()) {
            break label270;
          }
          if (j != 0) {
            break;
          }
          if (localk2.getBool(locale1)) {
            break label270;
          }
          locale1 = localh.b(locale1);
        } while (j == 0);
      } while (bool);
      localx.a(localObject2, locale1);
      ((w)localObject1).f();
    } while (j == 0);
    label270:
    label295:
    label298:
    localObject1 = new z(paramo, localx);
    Object localObject2 = localbb.l();
    label546:
    label570:
    label585:
    do
    {
      if (!((w)localObject2).e()) {
        break;
      }
      locale1 = ((w)localObject2).d();
      ((z)localObject1).c(locale1);
      Object localObject3 = localu1;
      if (j != 0) {
        return;
      }
      y localy;
      k localk3;
      do
      {
        if ((bool) || (localk1 != null))
        {
          u localu2 = u.a(localk1.get(locale1));
          if ((bool) || (localu2 != null)) {
            localObject3 = localu2;
          }
        }
        double d1 = paramo.p(locale1) + ((u)localObject3).c;
        double d2 = paramo.q(locale1) + ((u)localObject3).b;
        double d3 = paramo.s(locale1) - ((u)localObject3).c - ((u)localObject3).e;
        double d4 = paramo.t(locale1) - ((u)localObject3).b - ((u)localObject3).d;
        localy = new y(paramo);
        localk3 = paramo.c(a.f.g.e.w);
        if (bool) {
          break label570;
        }
        if (localk3 != null)
        {
          w localw = paramo.v();
          do
          {
            if (!localw.e()) {
              break label546;
            }
            a.c.e locale2 = localw.d();
            if (j != 0) {
              break;
            }
            if (!localk3.getBool(locale2)) {
              localy.a(locale2);
            }
            localw.f();
          } while (j == 0);
        }
        a.a(paramo, d1, d2, d3, d4);
        if (bool) {
          break label585;
        }
      } while (bool);
      if (localk3 != null) {
        localy.g();
      }
      ((w)localObject2).f();
    } while (j == 0);
    ((z)localObject1).g();
    paramo.a(localx);
    if (!bool) {
      localh.e();
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.g.a.c

 * JD-Core Version:    0.7.0.1

 */